package com.example.springboot.mapper;

import com.example.springboot.controller.request.BaseRequest;
import com.example.springboot.entity.Exhibition;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper //@Mapper注解将mapper标注为spring的一个组件
//使用mapper将数据传入数据库
public interface ExhibitionMapper {

//用户列表
    List<Exhibition> list();

    List<Exhibition> listByCondition(BaseRequest baseRequest);

    List<Exhibition> listByStatus(BaseRequest baseRequest);

    void save(Exhibition exhibition);

    Exhibition getById(Integer id);

    void updateById(Exhibition exhibition);

    void deleteById(Integer id);

//    Exhibition getByExhibitionName(String exhibitionName);
//
//    Exhibition getByExhibitionNameAndPassword(@Param("exhibitionName") String exhibitionName, @Param("password") String password);

}
